/**
 主框架样式
 对应components-layout主框架样式
 请谨慎修改
**/

//@import "green.scss";
//@import "red.scss";
@import "blue.scss";
//@import "yellow.scss";
* {
  margin: 0;
  padding: 0;
}
body {
  background: #f5f5f5 !important;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
/**滚动条设置**/
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 5px;
}
::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  width: 5px;
  height: 8px;
  background-color: #aaa; /* or add it to the track */
}
::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  -webkit-box-shadow: inset 0 0 0px rgba(0, 0, 0, 0.2);
  border-radius: 0;
  background: #eee;
}
// 处理input type = number的上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"] {
  -moz-appearance: textfield;
}
//分页
.pagination {
  text-align: right;
  margin-top: 20px;
}
//按钮
.btn-box {
  background: #fff;
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border-top: 1px solid #eee;
  z-index: 999;
  margin-top: 20px;
  display: block;
}

.success{color:$color-success;}
.primary{color:$color-primary;}
.warning{color:$color-warning;}
.error{color:$color-error;}

.drawer{
  position: relative;
  .btn-box {
    position:absolute;
    right:0;
    bottom:0;
    width:100%;
    background: #fff;
    box-sizing: border-box;
    padding: 10px;
    border-top: 1px solid #eee;
    z-index:999;
    display: block;
    button{
      margin-right:10px;
    }
  }
}
//头部按钮
.title-but {
  position: absolute;
  top: 0;
  right: 0;
}
*:focus {
  outline: 0;
}

//动画效果
.slide-fade-enter-active {
  transition: all .3s ease-out;
}
.slide-fade-leave-active {
  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter-from,.slide-fade-leave-to {
  transform: translateX(20px);
  opacity: 0;
}

/**头部**/
.framework-head {
    position: absolute;
    top: 0;
    left: 264px;
    height: 50px;
    line-height:50px;
    width: calc(100% - 254px);
    padding: 0 20px;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    min-width: 600px;
    transform:translate(0,0);
    transition:0.3s;
    box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
    &.on{
      width: calc(100% - 200px);
      left: 200px;
    }
    .head-box{
      display: flex;
      justify-content: space-between;
      font-size:14px;
      .right{
        display: flex;
        .fullscreen{
          height:50px;
          line-height:50px;
          margin-right:10px;
          cursor: pointer;
        }
        .i18n{
          margin-right:10px;
          position: relative;
          span{
            margin-right:10px;
            cursor: pointer;
          }
          .locale{
            position: absolute;
            top:30px;
            left:0;
            background:#fff;
            list-style:none;
            z-index:99;
          }
        }
      }
      .pic{
        width:40px;
        height:40px;
        overflow: hidden;
        vertical-align: middle;
        border-radius:50%;
      }
    }
    .navigation{
      width:50%;
      b{
        cursor: pointer;
      }
      span{
        color:#999;
      }
    }
  }

/**服务导航**/
.framework-side {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  flex-direction: column;
  overflow: hidden;
  z-index: 11;
  width: 118px;
  transform: translate(0, 0);
  transition: 0.3s;
  background:$bg-color-defalut;
  &.on {
    width:40px;
    .nav{
      padding:0;
      li{
        padding:0;
        height:40px;
        line-height:40px;
        overflow: hidden;
        text-align: center;
      }
    }
  }
  .title {
  overflow: hidden;
  color: #fff;
  padding: 10px 0;
  display: flex;
  flex-wrap: nowrap;
  .logo {
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
  }
}
.help{
  width:100%;
  text-align: center;
  color:#fff;
  padding:10px 0;
  font-size:12px;
}
.nav {
  width: 100%;
  height: 100%;
    box-sizing: border-box;
  overflow: auto;
  overflow-y: auto;
  color: #fff;
  padding: 0;
  list-style: none;
  & > li {
    padding:0 10px;
    width:100%;
    box-sizing: border-box;
    height:35px;
    line-height:35px;
    overflow: hidden;
    cursor: pointer;
    font-size:14px;
    &.on {
      background: $color-success;
    }
  }
}
}


/**分类导航**/  
.framework-min-menu {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 118px;
  height: 100%;
  box-sizing: border-box;
  width: 160px;
  background: #eee;
  overflow: hidden;
  color: #323233;
  background: #fff;
  transform: translate(0, 0);
  transition: 0.3s;
  border-right: 1px solid #e5e5e5;
  z-index:11;
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
  &.on {
    left: 40px;
  }
  .title {
    background: #fff;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    .button{
      position:absolute;
      top:15px;
      left:10px;
      width:30px;
      height:30px;
      cursor: pointer;
      transform: scale(0.8);
      &::after{
        content: '';
        position: absolute;
        top:3px;
        left:0;
        border-top:3px solid #333;
        border-left:3px solid #333;
        width:3px;
        height:3px;
        transform: rotate(-45deg);
      }
      span{
        width:18px;
        height:2px;
        background:#333;
        overflow: hidden;
        margin-bottom:3px;
        display: block;
      }
    }
  }
  .menu{
    width: 100%;
    margin:0 auto;
    padding:0;
    box-sizing: border-box;
    font-size:14px;
    .menu-item-group{
      list-style:none;
      .menu-item-title{
        padding:10px;
        padding-left:5px;
        position: relative;
        cursor: pointer;
        &::after{
          content: '';
          position: absolute;
          top:10px;
          left:5px;
          width:14px;
          height:14px;
          border:1px solid #999;
          border-radius:50%;
          background:#fff;
          z-index:10;
          display:none;
        }
          &::before{
          content: '';
          position: absolute;
          top: 13px;
          left: 15px;
          width: 3px;
          height: 19px;
          background: #999;
          transform:rotate(-45deg);
          border-radius:0;
          z-index:9;
          display:none;
        }
    
      }
        &.on{
            background: $bg-color-success;
            color:$color-success;
            cursor:pointer;
        }
      .menu-item:hover{
        background: $bg-color-success;
        color:$color-success;
        cursor:pointer;
      }
    }
}
}

/**小标签**/
.framework-tag{
  position: absolute;
  top:65px;
  left: 279px;
  width: calc(100% - 280px);
  min-width: 600px;
  height: 35px;
  overflow: hidden;
  display: flex;
  transform:translate(0,0);
  display: flex;
  &.on{
    width: calc(100% - 213px);
    left: 204px;
  }
  .arrow-left{
    width:20px;
    height:35px;
    position: relative;
    &::after{
      content:"";
      position:absolute;
      top:50%;
      left:10px;
      width:10px;
      height:10px;
      border-left:1px solid #333;
      border-top:1px solid #333;
      transform: translate(0,-50%) rotate(-45deg);
      cursor: pointer;
      z-index:9;
    }
  }
  .arrow-right{
    width:20px;
    height:35px;
    position: relative;
     &::after{
      content:"";
      position:absolute;
      top:50%;
      right:10px;
      width:10px;
      height:10px;
      border-left:1px solid #333;
      border-top:1px solid #333;
      transform:translate(0,-50%) rotate(130deg);
      cursor:pointer;
      z-index:9;
    }
  }
  .tag-min{
    width:100%;
    height:37px;
    overflow: hidden;
    overflow-x: auto;
    white-space: nowrap;
    .row{
      display:inline-block;
      background:#fff;
      padding:0 20px;
      height:28px;
      line-height:28px;
      color: #000;
      margin-left:10px;
      font-size:12px;
      cursor: pointer;
      position: relative;
      padding-right:30px;
      &:hover{
        .i{
          background: $color-success;
          border-radius:50%;
          color:#fff;
          padding:0;
          margin:0;
          width:14px;
          height:14px;
          line-height:14px;
          overflow: hidden;
          text-align: center;
        }
      }
      .i{
        position:absolute;
        top:50%;
        right:10px;
        transform:translate(0,-50%);
        font-size:12px;
      }
      &.on{
        background:$bg-color-primary ;
      }
    }
  }
}

/***主框架***/
.framework-min {
    position: absolute;
    top: 110px;
    bottom: 0;
    left: 284px;
    width: calc(99.5% - 284px);
    height: calc(100%- 70px);
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    z-index:10;
    transform: translate(0, 0);
    transition: 0.3s;
    &>div{
      box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
    }
    &.on {
      width: calc(99.5% - 214px);
      left: 214px;
    }
  }


/**页脚**/
.framework-footer {
    position: absolute;
    right:0;
    bottom:0;
    text-align: center;
    color: #333;
    line-height: 30px;
    font-size: 12px;
    width: calc(99.5% - 284px);
}  


/**内容样式**/
.framework-box{
  width:100%;
  padding:20px;
  box-sizing: border-box;
  background:$bg-color-success;
  overflow: hidden;
  margin:0 auto 20px;
}
.table-title{
  width:100%;
  margin:10px auto;
  box-sizing: border-box;
  text-align:right;
}

.framework-content{
  background:#fff;
  padding:10px;
}

/**表格下tag**/
.ant-table-tbody {
  .ant-tag {
    cursor: pointer;
  }
}